Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: Magic Square Program #1780

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

rajdeepchakraborty-rc
Copy link
Contributor

Issue Resolved

Algorithm Added

Magic Square

Description

This program checks whether a given square matrix is a Magic Square. A Magic Square is a square matrix in which the sum of every row, column, and both diagonals is the same. The program employs an algorithm to validate this property for any square matrix(size is limited to 10x10) provided by the user.

Example:
Enter the size(between 1 and 10) of the matrix (n x n): 3
Enter the elements of the matrix:
2 7 6
9 5 1
4 3 8

Output:
The matrix is a magic square.

Added the Magic Square C program and README.md file
@pankaj-bind pankaj-bind merged commit 54d1e7b into AlgoGenesis:main Nov 8, 2024
1 of 2 checks passed
@rajdeepchakraborty-rc
Copy link
Contributor Author

rajdeepchakraborty-rc commented Nov 8, 2024

@pankaj-bind There is a issue with the repository. Please resolve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NEW ALGORITHM] Magic Square under 2D array
2 participants